package com.terry.androidkotlin.activity.view

import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import com.terry.androidkotlin.R
import com.terry.androidkotlin.adapter.QQMessageAdapter
import common.base.BaseActivity
import common.utils.base.ThemeHelper
import kotlinx.android.synthetic.main.activity_qq_message_list.*

/**
 * Author: Terry
 * bilibili: 码农安小辰
 * Github: https://gitee.com/itchenning/AndroidKotlin
 * Date: 2020-03-08 18:23
 * Comment:
 */
class QQMessageListTest : BaseActivity() {
    private lateinit var mAdapter: QQMessageAdapter

    override fun onCreate(savedInstanceState: Bundle?) {
        ThemeHelper.setTheme(this, false)
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_qq_message_list)
        setListView()
    }

    private fun setListView() {
        listView.layoutManager = LinearLayoutManager(this)
        mAdapter = QQMessageAdapter(this)
        listView.adapter = mAdapter
    }

}